#15 ✓resolved
Rick DeNatale

Duration validation issues

Reported by Rick DeNatale | July 6th, 2009 @ 12:17 PM | in 0.7.1

The PropertyValue::Duration#valid_string? is incorrect, it rejects valid duration strings and accepts others.

For example "+P1H" is an invalid duration string, it should be "+PT1H" a valid duration string is:

an optional + or - followed by a mandatory P character then one of

  a number of days \d+D optionally followed by a time duration

or

  a time duration T followed by on or more hour minute or second parts

or

  a number of weeks \d+W

Comments and changes to this ticket

  • Rick DeNatale

    Rick DeNatale July 6th, 2009 @ 12:19 PM

    • Milestone set to 0.7.1
    • State changed from “new” to “resolved”
    • Assigned user set to “Rick DeNatale”

    Fixed the regex and specs which had invalid duration times.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences

Shared Ticket Bins

People watching this ticket

Pages